/*
 * @Author: {易玩脚本圈:486675857}  
 *脚本交流群:1009722787
 * @Date: 2020-04-21 13:16:03 
 * @Last Modified by: 易玩脚本圈
 * @Last Modified time: 2020-05-03 17:11:57
 * */

//启动抖音打开视频哥   

/*app.startActivity({
   data: "snssdk1128://aweme/detail/" + id
});*/

var user = "15537222770", pwd = "123456qq", token = "";
登入()
function 登入() {
    var res = http.post("http://zcore.zqzan.com/app/account/raw/login", {
        "username": user,
        "loginpw": pwd
    });
    var data = res.body.json();

    if (data.code == 0) {
        token = data.data.token;
        toastLog(data['msg'] + "---" + token)
        领取任务() 
    }

}


function 领取任务() {
    var res = http.post("http://zcore.zqzan.com/app/douyin/pull/one", {
        "b_discount": true,
        "access": 59,
        "exam_status":0
    }, {
        headers: {
           'Token':token
        }
    });
    var data = res.body.json();

    if (data.code == 0) {
       //console.log(data)
        var awid=data.data.aweme_id;
        app.startActivity({
            data: "snssdk1128://aweme/detail/6817017285299965192?refer=web&gd_label=click_wap_download_banner&appParam=&needlaunchlog=1"
         });
    }
}